package fi.joensuu.mpm.data;

/**
 * class represents one place record from database
 * 
 * @author Pawel 
 */
public class Place {

	private int id;
	private String name;
	private String street;
	private String city; 
	private int postalCode;
	private int telephone; 
	private String openingHours;
	private float latitude;
	private float longitude;
	private String picture;
	private String description;
	
	private float distance;
	
	
	//TODO delete that:
	public Place(int id, String name, String street, String city,
			int postalCode, int telephone, String openingHours, float latitude,
			float longitude, String picture) {
		this(id,name,street,city,postalCode,telephone,openingHours,latitude,longitude,picture,"");
	}
	
	public Place(int id, String name, String street, String city,
			int postalCode, int telephone, String openingHours, float latitude,
			float longitude, String picture, String description) {
		super();
		this.id = id;
		this.name = name;
		this.street = street;
		this.city = city;
		this.postalCode = postalCode;
		this.telephone = telephone;
		this.openingHours = openingHours;
		this.latitude = latitude;
		this.longitude = longitude;
		this.picture = picture;
		this.description = description;
	}
	
	
	public Place() {
		// TODO Auto-generated constructor stub
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public int getPostalCode() {
		return postalCode;
	}
	public void setPostalCode(int postalCode) {
		this.postalCode = postalCode;
	}
	public int getTelephone() {
		return telephone;
	}
	public void setTelephone(int telephone) {
		this.telephone = telephone;
	}
	public String getOpeningHours() {
		return openingHours;
	}
	public void setOpeningHours(String openingHours) {
		this.openingHours = openingHours;
	}
	public float getLatitude() {
		return latitude;
	}
	public void setLatitude(float latitude) {
		this.latitude = latitude;
	}
	public float getLongitude() {
		return longitude;
	}
	public void setLongitude(float longitude) {
		this.longitude = longitude;
	}
	public String getPicture() {
		return picture;
	}
	public void setPicture(String picture) {
		this.picture = picture;
	}
	public CharSequence getDescription() {	
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

	public float getDistance() {
		return distance;
	}

	public void setDistance(float distance) {
		this.distance = distance;
	}
	
}
